package com.hnust.root.dao.entity.domain.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

//系统消息/公告
@Data
@TableName("system_message")
public class SystemMessage {

    private static final long serialVersionUID = 1L;

    @TableId
    private int id;

    //系统消息对应的头图
    @TableField("img_src")
    private String imgSrc;

    //标题
    @TableField("title")
    private String title;

    //消息详细
    @TableField("detail")
    private String detail;

    //消息创建时间
    @TableField("create_time")
    private Date updatedAt;

    //阅读数量
    @TableField("count")
    private int readCount;

    //消息所属的学校
    @TableField("university")
    private String university;

    //消息类型
    //0-所有人可见
    //1-仅校友可见
    @TableField("type")
    private int type;
}
